import { http } from '@/utils/request.js'

const businessService = {
  list: (data) => {
    return http.get('/system/business/list', data)
  },
  detail: (id) => {
    return http.get(`/system/business/${id}`)
  },
  add: (data) => {
    return http.post('/system/business/insert', data)
  },
  update: (data) => {
    return http.post('/system/business/update', data)
  },
  delete: (id) => {
    return http.delete(`/system/business/${id}`)
  },
  getBusinessFlow: (data) => {
    return http.get('/system/business/getBusinessFlow', data)
  },
}
export default businessService
